package com.zr.inquiry.total.controller;

import com.zr.inquiry.total.model.pojo.InquiryTotalResultVo;
import com.zr.inquiry.total.service.SeeInquiryService;
import com.zr.utils.result.ResultBuilderUtil;
import com.zr.utils.result.ResultUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @ClassName SeeInquiryController
 * @Description TODO 定单查询、审批、审核控制器
 * @Author 马家奎
 * @Date 2019/11/15 9:43
 */
@CrossOrigin
@RestController
public class SeeInquiryController {
    @Autowired
    private SeeInquiryService seeInquiryService;

    @PostMapping("inquirySheet/see")
    public ResultUtil queryInquiryByQuotationId(@RequestBody Map<String,String> map){

        InquiryTotalResultVo inquiryTotalResultVo =  seeInquiryService.queryInquiryByQuotationId(map.get("requestForQuotationId"));

        return ResultBuilderUtil.success(inquiryTotalResultVo);
    }
    @PostMapping("inquiryAuditor/update")
    public ResultUtil inquiryAuditor(){


        return null;
    }


}
